package 每日温度;

import java.util.ArrayList;
//暴力解法
public class Solution {
    public int[] dailyTemperatures(int[] T) {
        int len = T.length;
        int[] res = new int[len];
        for(int i = 0 ; i < len ; i++){
            int currentT = T[i];
            for(int j = i+1; j < len;j++){
                if(T[j] > currentT){
                    res[i] = j-i;
                    break;
                }
            }
        }
        return res;

    }
}
